<!-- 各种形状 -->
<template>
  <div class="shape-box">
    <ContentTitle title="空调遥控器"></ContentTitle>
    <RemoteControl></RemoteControl>

    <ContentTitle title="三角形" style="margin-top: 30px"></ContentTitle>
    <Triangle></Triangle>

    <!-- 菱形 -->
    <ContentTitle
      title="菱形"
      style="margin-top: 30px;margin-bottom: 10px"
    ></ContentTitle>
    <div class="diamond"></div>

    <!-- 梯形 -->
    <ContentTitle title="梯形" style="margin-top: 30px"></ContentTitle>
    <Trapezium></Trapezium>

    <ContentTitle title="八卦图" style="margin-top: 30px"></ContentTitle>
    <div class="EightDiagrams"></div>

    <ContentTitle title="爱心" style="margin-top: 30px"></ContentTitle>
    <div class="love"></div>
  </div>
</template>

<script>
export default {
  mounted() {},
  computed: {},
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="less" scoped>
.shape-box {
  .diamond {
    width: 50px;
    height: 50px;
    transform: rotate(135deg);
    background-color: @primary-color;
  }

  .EightDiagrams {
    position: relative;
    width: 100px;
    height: 100px;
    border-width: 2px 2px 50px 2px;
    border-style: solid;
    border-color: @primary-color;
    border-radius: 100px;
  }

  .EightDiagrams::after {
    content: "";
    box-sizing: unset;
    width: 8px;
    height: 8px;
    border: 20px solid @primary-color;
    position: absolute;
    left: 0;
    top: 50%;
    border-radius: 50px;
    background: #fff;
  }

  .EightDiagrams::before {
    content: "";
    box-sizing: unset;
    width: 8px;
    height: 8px;
    border: 20px solid #fff;
    position: absolute;
    right: 0;
    top: 50%;
    border-radius: 50px;
    background: @primary-color;
  }

  .love {
    position: relative;
  }

  .love::before {
    content: "";
    width: 50px;
    height: 90px;
    position: absolute;
    background: black;
    left: 50px;
    top: 0;
    border-radius: 50px 50px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
  }
  .love::after {
    content: "";
    width: 50px;
    height: 90px;
    position: absolute;
    background: black;
    left: 0;
    top: 0;
    border-radius: 50px 50px 0 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
  }
}
</style>
